﻿using System.Collections.Generic;
using NExplorer.Core.Commands;

namespace NExplorer.Core
{
	internal class ClipboardMenuBuilder : SingleCategoryMenuBuilder
	{
		protected override string Category
		{
			get { return "Clipboard"; }
		}

		protected override void AddCommands()
		{
			Add<CutCommand>();
			Add<CopyCommand>();

			SelectionInfo selectionInfo = ServiceManager.Explorer.SelectionInfo;

			// Test if it's a directory.
			if (selectionInfo.IncludesDirectories)
			{
				Add<PasteCommand>();
			}
		}
	}
}